package com.my.ddd_sample_collections.aggregate_change_tracking.dao.po;


import com.my.ddd_sample_collections.aggregate_change_tracking.domain.*;
import com.my.ddd_sample_collections.aggregate_change_tracking.repository_framework.PersistenceObjectSupport;

import java.util.List;

import lombok.*;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class MyAggregatePO extends PersistenceObjectSupport {
    private String foo;
    private String bar;
    private List<String> simpleItems;
    private String[] arrayItems;

    /**
     * 通过PO提供toDO方法，这是一个方案，但是对于DO：PO是m：n关系时，不合适
     */
    @Deprecated
    public MyAggregateDO toComplexAggregateRootDO() {
        return null;
    }

}
